@(id: Long, editForm: Form[models.Type])

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 

@main("Todo list") { 
    <header class="topbar">
        <h1 class="fill" align="center">
            <a href="@routes.Application.index()">
				Plateforme de gestion de catalogue de produits
            </a>
        </h1>
    </header>
     @if(flash.containsKey("success")) {
        <div align="center" class="alert-message success">
            <strong>Done!</strong> @flash.get("success")
        </div>
    }else{
	    @if(flash.containsKey("error")){
	    	<div align="center" class="alert-message error">
	            <strong>Done!</strong> @flash.get("error")
	        </div>
	    } 
    }
    <h2 style="padding:15px">Add a new type</h2>
    
    @form(routes.Types.update(id)) {
    <fieldset>
        @inputText(editForm("nType"), '_label -> "Type name" )
        @inputText(editForm("categorie"), '_label -> "Category name")
                
        <div class="actions">
            <input type="submit" value="update this type" class="btn primary topRight">            
        </div>
    </fieldset>         
    }
}